package com.pig4cloud.pigx.user.service;

import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.user.entity.RechargeRecord;
import com.pig4cloud.pigx.user.entity.User;

import java.util.Map;

/**
 * @date:2022/8/8
 */
public interface EmailService {


	/**
	 * 发送验证码
	 * @param user	邮箱信息
	 * @param massage	邮件类型
	 * @return
	 */
	R<String> sendEmail(User user, String massage, Map<String, String> textContentCode);

	/**
	 * 发送充值成功邮件
	 * @param record record
	 * @throws Exception e
	 */
	void sendRechargeRecordEmail(RechargeRecord record) throws Exception;
}
